package com.qf.controller;

import com.qf.pojo.User;
import com.qf.service.UserService;

import java.util.List;

/*
 *@Description:
 *@author:刘哥
 *@Date:9:54 2022/7/9
 */
public class UserController {
    private UserService userService;
    public void setUserService(UserService userService){
        this.userService=userService;
    }
    public List<User> findAll(){
        return userService.findAll();
    }
    public void delete(int id){
        userService.remove(id);
    }
    public void upDate(User user){
        userService.modify(user);
    }
    public void add(User user){
        userService.add(user);
    }
}
